package com.ideaction.bimodule.enity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document
public class ForbidMessage {
    
    @Id
    private String id;//主键
    
    private String userID;//玩家id
    
    private String type;//封禁类型
    
    private boolean isForbid;//是否封禁
    
    private Long timeStamp;//封禁时间
    
    public void update(ForbidMessage forbidMessage) {
        this.type = forbidMessage.getType();
        this.isForbid = forbidMessage.isForbid();
        timeStamp = forbidMessage.getTimeStamp();
        
    }
}
